//
// Created by Semir on 2020/4/28.
//

#include <iostream>

using namespace std;

const int MAX_N = 3005;
int n;
long long arr[MAX_N];

int main() {
    cin >> n;
    arr[0] = 1;
    arr[1] = 1;
    for (int i = 2; i <= n; i++) {
        for (int j = i - 1; j >= 0; j--) {
            arr[i] += arr[j] * arr[i - 1 - j] ;
            arr[i] %= 100000007;
        }
    }
    cout << arr[n] << endl;
    return 0;
}